package Stream.test1;

import java.util.stream.Stream;

public class StaticStream {

    //静态流
    public static void main(String[] args) {
        Stream<String> t1 = Stream.of("a", "b", "c");
        Stream<String> t2 = Stream.of("d", "e", "f");
        Stream<String> concat = Stream.concat(t1, t2);
        concat.forEach(System.out::println);
    }
}
